import { BasicLayout } from "@/layouts/index"
/**
 * 路由和页面映射
 */
export default [
    /** 目录容器组件 */
    {
        path: "/",
        component: BasicLayout,
        meta: { title: "首页" }
    },
    /** 普通页面组件 */
    {
        path: "/demo/teacherList",
        component: () => import("@/modules/demo/TeacherList.vue"),
        meta: { title: "常规列表" }
    },
    {
        path: "/demo/treeList",
        component: () => import("@/modules/demo/TreeList.vue"),
        meta: { title: "树列表" }
    },
    {
        path: "/demo/detailPageDemo",
        component: () => import("@/modules/demo/DetailPageDemo.vue"),
        meta: { title: "详情页DEMO" }
    },
    {
        path: "/demo/eduInfoDemo",
        component: () => import("@/modules/demo/EduInfoDemo.vue"),
        meta: { title: "学历信息DEMO" }
    },
    {
        path: "/demo/stepsPageDemo",
        component: () => import("@/modules/demo/StepsPageDemo.vue"),
        meta: { title: "步骤DEMO" }
    },
    {
        path: "/404",
        component: () => import(/* webpackChunkName: "fail" */ "@/modules/exception/404"),
        meta: { title: "错误" }
    },
    {
        path: "/login",
        component: () => import("@/modules/home/Logon.vue"),
        meta: { title: "登陆" }
    },
    {
        path: "/home/index",
        component: () => import("@/modules/home/Home.vue"),
        meta: { title: "首页", icon: "home", keepAlive: false }
    },
    {
        path: "/sys/roleList",
        hidden: false,
        component: () => import("@/modules/sys/RoleList.vue"),
        meta: { title: "角色管理", icon: "money-collect" }
    },
]
